//
//  ONViewController.h
//  PPL
//
//  Created by Familly on 3/25/14.
//  Copyright (c) 2014 Familly. All rights reserved.
//

#import <UIKit/UIKit.h>



@interface ONViewController : UIViewController



@property (weak, nonatomic) IBOutlet UIPickerView *modePicker;
@property (weak, nonatomic) IBOutlet UIPickerView *chapterPicker;
@property (weak, nonatomic) IBOutlet UIPickerView *questionsPicker;

@property (strong, nonatomic) NSArray *arrMode;
@property (strong, nonatomic) NSArray *arrChapter;
@property (strong, nonatomic) NSArray *arrQuestion;

@property (weak, nonatomic) IBOutlet UITextField *mTextfield;

@property (nonatomic, assign) NSInteger modeIndex;
@property (nonatomic, assign) NSInteger chapIndex;
@property (nonatomic, assign) NSInteger questIndex;
@property (nonatomic, retain) NSString *strMode;
@property (nonatomic, retain) NSString *strQuestions;
@property (nonatomic, retain) NSString *strChapter;
@property (weak, nonatomic) IBOutlet UILabel *lbTotalQuest;

-(IBAction)touchStart:(id)sender;
@property (weak, nonatomic) IBOutlet UIImageView *progressBarImage;

//test progressbar
- (void)processBarBackgroundImage:(UIImage *)backgroundImage foregroundImage:(UIImage *)foregroundImage;

@property (nonatomic, assign) double progress;
@property (nonatomic, assign) CGFloat offsetForZero;

@end
